%h1= @computer_view.name

%ul
  %li="IP : #{@computer_view.ip}"
  %li="Salle : #{@computer_view.room.name}"

- unless @check
  %p
    =link_to_remote 'Interrogation de la machine', { :url => {:controller => :computers, :action=> :check_computer , :id => @computer_view.id},:method => :get, :before => "Element.show('loader');Element.show('wait_icon')", :complete => "Element.hide('loader');Element.hide('wait_icon')"}, :href => (url_for ({:controller => :computers, :action => :check_computer, :id => @computer_view.id}))
- else
  %ul
    %li="Check PING : #{@computer_view.ping}"
    %li="Check RAM : #{@computer_view.ram}"
  %p
    =link_to_remote 'Reinterroger la machine', { :url => {:controller => :computers, :action=> :check_computer , :id => @computer_view.id},:method => :get, :before => "Element.show('loader');Element.show('wait_icon')", :complete => "Element.hide('loader');Element.hide('wait_icon')"}, :href => (url_for ({:controller => :computers, :action => :check_computer, :id => @computer_view.id}))

